package com.lonely.web.controller.pda;

import com.lonely.common.core.domain.api.R;
import com.lonely.deliver.service.IPdaScanService;
import com.lonely.order.domain.dto.order.SkcStickerQrCodeDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 黄志标
 * @date: 2025/8/15 17:34
 * @description: pda扫描控制器
 */
@RestController
@RequestMapping("/pdaManage/scan")
@Api(tags = "PDA/扫码")
public class PdaController {

    @Autowired
    private IPdaScanService pdaScanService;

    /**
     * 扫码录数
     *
     * @param skcStickerQrCodeDTO
     * @return
     */
    @PostMapping("/scanCodeRecordNum")
    @ApiOperation(value = "扫码录数")
    public R<Boolean> scanCodeRecordNum(@RequestBody @Validated SkcStickerQrCodeDTO skcStickerQrCodeDTO) {
        this.pdaScanService.scanCodeRecordNum(skcStickerQrCodeDTO);
        return R.status(true);
    }





}
